package com.killer.controller;

import com.killer.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;

/**
 * @author ：Killer
 * @date ：Created in 21-2-24 下午5:34
 * @description：${description}
 * @modified By：
 * @version: version
 */
@RestController
@RequestMapping("resume")
public class ResumeController {

    @Autowired
    private ResumeService resumeService;

    @RequestMapping("/find")
    public Object findResume(@RequestParam String name) throws ExecutionException {
        return resumeService.listResumeByName(name);
    }
}
